package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.wms.domain.vo.DealDtlVo;
import com.xmtlxx.wms.domain.vo.DealVo;
import com.xmtlxx.system.domain.SysOss;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 处置业务对象 t_deal
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("处置业务对象")
public class DealBo extends BaseEntity {

    /**
     * 处置记录ID
     */
    @ApiModelProperty(value = "处置记录ID")
    private String id;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID", required = true)
    @NotBlank(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskId;

    /**
     * 处置单编号
     */
    @ApiModelProperty(value = "处置单编号", required = true)
    @NotBlank(message = "处置单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dealNo;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID", required = true)
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 处置人ID
     */
    @ApiModelProperty(value = "处置人ID", required = true)
    @NotNull(message = "处置人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long operator;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 描述备注
     */
    @ApiModelProperty(value = "描述备注")
    private String memo;

    /**
     * 图片附件
     */
    @ApiModelProperty(value = "图片附件")
    private String pics;

    /**
     * 交接信息
     */
    @ApiModelProperty(value = "交接信息")
    private String handId;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    @ApiModelProperty("仓库ID")
    private String storeId;

    @ApiModelProperty(value = "部门")
    private String deptName;

    @ApiModelProperty(value = "仓库")
    private String storeName;

    @ApiModelProperty("订单编号")
    private String taskNo;

    private List<SysOss> oss;

    private List<DealDtlVo> items;

    /**
     * 处置方式
     */
    @ApiModelProperty("处置方式")
    private String dealType;


    /**
     * 扣押单位
     */
    @ApiModelProperty("扣押单位")
    private String officeName;

    /**
     * 是否审核
     */
    @ApiModelProperty("是否审核")
    private String isCheck;

    /**
     * 审核人
     */
    @ApiModelProperty("审核人")
    private String checker;

    /**
     * 审核时间
     */
    @ApiModelProperty("审核时间")
    private Date checkTime;

    /**
     * 处置数
     */
    @ApiModelProperty("处置数")
    private Long nums;

    /**
     * 处置文书
     */
    @ApiModelProperty("处置文书")
    private String wsPdf;

    /**
     * 处置挑拣状态
     */
    @ApiModelProperty("处置挑拣状态")
    private String isFinish;
    /**
     * 处置签收状态
     */
    @ApiModelProperty("处置签收状态")
    private String isSign;
    /**
     * 处置登记信息
     */
    @ApiModelProperty("处置登记信息")
    private String registerInfo;
    /**
     * 处置登记人
     */
    @ApiModelProperty("处置登记人")
    private String registrant;
    /**
     * 处置登记时间
     */
    @ApiModelProperty("处置登记时间")
    private Date registerTime;


    /**
     * 属性认定
     */
    @ApiModelProperty("属性认定")
    private String believe;
    /**
     * 是否确认
     */
    @ApiModelProperty("是否确认")
    private String isAck;
    /**
     * 确认人
     */
    @ApiModelProperty("确认人")
    private String acker;
    /**
     * 确认时间
     */
    @ApiModelProperty("确认时间")
    private Date ackTime;
    /**
     * 处置时间
     */
    @ApiModelProperty("处置时间")
    private Date disposalTime;

    /**
     * 处置意见单位
     */
    @ApiModelProperty("处置意见单位")
    private Long officeId;

    /**
     * 来源
     */
    @ApiModelProperty("来源")
    private String source;

    /**
     * 登记状态
     */
    @ApiModelProperty("登记状态")
    private String isRegister;

    /**
     * 搜索条件
     */
    private String pno;
    private String pname;

    private String isTrailer;

    private List<DealVo> validateItems;

    private Long proOfficeId;

    private String judgeUnit;

    private String taskInfo;

    private String taskRegisterInfo;

    private String inStore;//在库 1 不在库 0；

    private String judgeTime;

    private String detainUnit;

    private String dealName;

    private String orderByType;
    private BigDecimal dealMoney;

    private String region;
}
